﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Baosight.ZNH.ZMCA.UI.Utils;
using Telerik.Windows.Controls.Gauges;

namespace Baosight.ZNH.ZMCA.UI.Controls
{
    /// <summary>
    /// 单仪表盘控件
    /// 使用该控件时可以设置centerNeedle.Value来设置指标值
    /// 可以设置centerDesc.Text来显示补充信息，如单位信息
    /// 可以通过调用centerControler.SetMarkerValer设置警告值和安全值
    /// </summary>
    public partial class SingleCircleGauge : UserControl
    {
        public RadialGaugeControler centerControler;
        public SingleCircleGauge()
        {
            InitializeComponent();
            RadialGaugeControler.InitRadialScale(centerGauge, centerRadialScale, new TextBlock[]{centerGaugeDescription});
            centerControler = new RadialGaugeControler(centerRadialScale, centerRadialBar, centerNeedle, centerMarkerWarning, centerMarkerPass, numericIndicator);
        }
    }
}
